package com.song.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.song.common.request.PageRequest;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 厨师预约记录请求对象 ap_user_chef_record
 *
 * @author song
 * @date 2024-03-08
 */
@Data
@ApiModel(value = "厨师预约记录对象")
@EqualsAndHashCode(callSuper = true)
public class ApUserChefRecordRequest extends PageRequest {


    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 厨师ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "厨师ID")
    private Long chefId;

    /**
     * 预约价格
     */
    @ApiModelProperty(value = "预约价格")
    private BigDecimal price;
    /**
     * 预约地址
     */
    @ApiModelProperty(value = "预约价格")
    private String address;
    /**
     * 预约电话
     */
    @ApiModelProperty(value = "预约价格")
    private String telPhone;


    /**
     * 预约时间
     */
    @NotNull(message = "预约时间不能为空")
    @ApiModelProperty(value = "预约时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate appointmentTime;

    /**
     * 1 早餐 2 午餐 3 晚餐
     */
    @NotNull(message = "请选择预约餐次")
    @ApiModelProperty(value = "1 早餐 2 午餐 3 晚餐")
    private Integer meals;


    /**
     * 1 早餐 2 午餐 3 晚餐
     */

    @ApiModelProperty(value = "1 完成 2 进行中 3 未完成")
    private Integer status;


    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;



    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    /**
     * 更新人名称
     */
    @ApiModelProperty(value = "更新人名称")
    private String updateByName;
}
